# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=fs-exploit
pkgver=3.28bb9bb
pkgrel=4
groups=('blackarch' 'blackarch-exploitation' 'blackarch-automation')
pkgdesc='Format string exploit generation.'
arch=('any')
url='https://github.com/miaouPlop/fs'
license=('custom:unknown')
makedepends=('git')
depends=('python2')
source=("$pkgname::git+https://github.com/miaouPlop/fs.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

